﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WebApi.Filter;

namespace WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestCacheController : ControllerBase
    {
        [HttpGet]
        //[TypeFilter(typeof(MemoryCacheFilterAttribute))]
        public IActionResult Get()
        {
            return new JsonResult(new
            {
                name = 123,
                age = 1
            });
        }
    }
}
